package com.spring.cloud.service.impl

import com.spring.cloud.mapper.UserInfoMapper
import com.spring.cloud.module.UserInfo
import com.spring.cloud.service.UserInfoService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

@Service
class UserInfoServiceImpl : UserInfoService{

    @Autowired
    lateinit var userInfoMapper:UserInfoMapper

    override fun queryUserList(userInfo: UserInfo): List<UserInfo> {
       return userInfoMapper.queryUserList(userInfo)
    }


    override fun insertUserInfo(userInfo: UserInfo):Int {
       return userInfoMapper.insertUserInfo(userInfo)
    }
}